package com.example.nongye.http.api;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestServer;
import com.hjq.http.model.RequestBodyType;

public final class GiteeApi implements IRequestServer, IRequestApi {

    @NonNull
    @Override
    public String getHost() {
        return "https://gitee.com/";
    }

    @NonNull
    @Override
    public String getApi() {
        return "huangjide/nongye";
    }

    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        // 参数以 Json 格式提交（默认是表单）
        return RequestBodyType.FORM;
    }

}